import React from "react"

interface StatisticsProps {
	data: any[]
	statisticText?: string
	statisticDom?: (() => React.ReactNode | string | undefined) | React.ReactNode | string | undefined
}

const Statistics: React.FC<StatisticsProps> = ({ statisticText, statisticDom }) => {
	// 统计逻辑待实现
	// 要统计什么, 怎么统计，自定义实现
	// console.log(data)
	return <div>{typeof statisticDom === "function" ? statisticDom() : statisticDom || statisticText}</div>
}

export default Statistics
